package com.shuyuntu.proposal.task;

import com.shuyuntu.proposal.service.ProposalService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.TimerTask;

/**
 * Created by limeng on 16/7/27.
 */
@Component
public class NFDFlightDataTimerTask extends TimerTask {
    @Override
    public void run() {
        try {
            proposalService.autoFeedbackPass();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Resource
    ProposalService proposalService;

    public ProposalService getProposalService() {
        return proposalService;
    }

    public void setProposalService(ProposalService proposalService) {
        this.proposalService = proposalService;
    }
}